/* tslint:disable */
/* eslint-disable */

import React, { FunctionComponent } from 'react';
import { ViewProps } from 'react-native';
import { GProps } from 'react-native-svg';
import IconErji from './IconErji';
import IconShijian from './IconShijian';
import IconXiangyou from './IconXiangyou';
import IconXihuan from './IconXihuan';
import IconDuihuan from './IconDuihuan';
import IconXiangshang from './IconXiangshang';
import IconXiangxia from './IconXiangxia';
import IconWode from './IconWode';
import IconFaxian from './IconFaxian';
import IconAdd from './IconAdd';
import IconFenlei from './IconFenlei';
import IconIcon4 from './IconIcon4';
import IconHome from './IconHome';
import IconHomehomepagemenu from './IconHomehomepagemenu';

export type IconNames = 'icon-erji' | 'icon-shijian' | 'icon-xiangyou' | 'icon-xihuan' | 'icon-duihuan' | 'icon-xiangshang' | 'icon-xiangxia' | 'icon-wode' | 'icon-faxian' | 'icon-add' | 'icon-fenlei' | 'icon-icon4' | 'icon-home' | 'icon-Homehomepagemenu';

interface Props extends GProps, ViewProps {
  name: IconNames;
  size?: number;
  color?: string | string[];
}

let IconFont: FunctionComponent<Props> = ({ name, ...rest }) => {
  switch (name) {
    case 'icon-erji':
      return <IconErji key="1" {...rest} />;
    case 'icon-shijian':
      return <IconShijian key="2" {...rest} />;
    case 'icon-xiangyou':
      return <IconXiangyou key="3" {...rest} />;
    case 'icon-xihuan':
      return <IconXihuan key="4" {...rest} />;
    case 'icon-duihuan':
      return <IconDuihuan key="5" {...rest} />;
    case 'icon-xiangshang':
      return <IconXiangshang key="6" {...rest} />;
    case 'icon-xiangxia':
      return <IconXiangxia key="7" {...rest} />;
    case 'icon-wode':
      return <IconWode key="8" {...rest} />;
    case 'icon-faxian':
      return <IconFaxian key="9" {...rest} />;
    case 'icon-add':
      return <IconAdd key="10" {...rest} />;
    case 'icon-fenlei':
      return <IconFenlei key="11" {...rest} />;
    case 'icon-icon4':
      return <IconIcon4 key="12" {...rest} />;
    case 'icon-home':
      return <IconHome key="13" {...rest} />;
    case 'icon-Homehomepagemenu':
      return <IconHomehomepagemenu key="14" {...rest} />;
  }

  return null;
};

IconFont = React.memo ? React.memo(IconFont) : IconFont;

export default IconFont;
